home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl720 / sst115j.lzh / MAKEFILE < prev    next >
Text File  |  1992-10-09  |  5KB  |  154 lines

  1. # ----------------------------------------------------------------------------
  2. #                               sst lib makefile
  3. # ----------------------------------------------------------------------------
  4.  
  5. #  ---------------------------------------------------------------------------
  6. #  Establish memory model and library file name
  7. #  ---------------------------------------------------------------------------
  8. MODEL        = s
  9. LIBNAME      = sst$(MODEL).lib
  10.  
  11. # ----------------------------------------------------------------------------
  12. # Compiler selection, set slected one to 1 and all else to 0
  13. # ----------------------------------------------------------------------------
  14. TCPP    = 0
  15. BCPP    = 1
  16.  
  17. all         :demo.exe    \
  18.              idemo.exe   \
  19.              ldemo.exe   \
  20.              edemo.exe   \
  21.              vdemo.exe   \
  22.              mdemo.exe   \
  23.              mscdemo.exe \
  24.              wdemo.exe   \
  25.              sdemo.exe
  26.  
  27. #  ---------------------------------------------------------------------------
  28. #  Turbo C ++ Macros to establish the memory model, debug, and libraries
  29. #  ---------------------------------------------------------------------------
  30. !if $(TCPP) == 1
  31. COMPILER     = tcc
  32.  
  33. !if $(MODEL) == s
  34. STARTUP      = \tc\lib\c0s
  35. LIBS         = \tc\lib\cs
  36. !endif
  37. !if $(MODEL) == l
  38. STARTUP      = \tc\lib\c0l
  39. LIBS         = \tc\lib\cl
  40. !endif
  41.  
  42. LINKDEBUG    = /x /d
  43. COMPILEDEBUG = -N -O -Z -G -M-
  44. !endif
  45.  
  46. #  ---------------------------------------------------------------------------
  47. #  Borland C++ Macros to establish the memory model, debug, and libraries
  48. #  ---------------------------------------------------------------------------
  49. !if $(BCPP) == 1
  50. COMPILER     = bcc
  51.  
  52. !if $(MODEL) == s
  53. STARTUP      = \bc\lib\c0s
  54. LIBS         = \bc\lib\cs
  55. !endif
  56. !if $(MODEL) == l
  57. STARTUP      = \bc\lib\c0l
  58. LIBS         = \bc\lib\cl
  59. !endif
  60.  
  61. LINKDEBUG    = /m /v
  62. COMPILEDEBUG = -y
  63. !endif
  64.  
  65.  
  66. #  ---------------------------------------------------------------------------
  67. #  Library
  68. #  ---------------------------------------------------------------------------
  69.  
  70. $(LIBNAME)   :sstedt.obj              \
  71.               sstfld.obj              \
  72.               sstwin.obj              \
  73.               sstsel.obj              \
  74.               ssthlp.obj              \
  75.               sstmnu.obj              \
  76.               sstvid.obj              \
  77.               sstmou.obj              \
  78.               sststr.obj              \
  79.               sstfos.obj
  80.       del $(LIBNAME)
  81.       tlib $(LIBNAME) @sst.bld
  82.  
  83.  
  84. #  ---------------------------------------------------------------------------
  85. #  An implicit rule to build .EXE files
  86. #  ---------------------------------------------------------------------------
  87.  
  88. .obj.exe:
  89.     tlink $(LINKDEBUG) $(STARTUP) $*, $*,,$(LIBS)
  90.  
  91. #  ---------------------------------------------------------------------------
  92. #  An implicit rule to build .OBJ files
  93. #  ---------------------------------------------------------------------------
  94.  
  95. .c.obj:
  96.     $(COMPILER) $(COMPILEDEBUG) -c -m$(MODEL) $*.c
  97.  
  98. #  ---------------------------------------------------------------------------
  99. demo.obj     :demo.c
  100.  
  101. demo.exe     :demo.obj  $(LIBNAME)
  102.                 tlink $(LINKDEBUG) $(STARTUP) demo,$*,,$(LIBS) $(LIBNAME)
  103.  
  104. #  ---------------------------------------------------------------------------
  105. idemo.obj    :idemo.c
  106.  
  107. idemo.exe    :idemo.obj  $(LIBNAME)
  108.                 tlink $(LINKDEBUG) $(STARTUP) idemo,$*,,$(LIBS) $(LIBNAME)
  109.  
  110. #  ---------------------------------------------------------------------------
  111. ldemo.obj    :ldemo.c
  112.  
  113. ldemo.exe    :ldemo.obj  $(LIBNAME)
  114.                 tlink $(LINKDEBUG) $(STARTUP) ldemo,$*,,$(LIBS) $(LIBNAME)
  115.  
  116. #  ---------------------------------------------------------------------------
  117. edemo.obj    :edemo.c
  118.  
  119. edemo.exe    :edemo.obj  $(LIBNAME)
  120.                 tlink $(LINKDEBUG) $(STARTUP) edemo,$*,,$(LIBS) $(LIBNAME)
  121.  
  122. #  ---------------------------------------------------------------------------
  123. vdemo.obj    :vdemo.c
  124.  
  125. vdemo.exe    :vdemo.obj  $(LIBNAME)
  126.                 tlink $(LINKDEBUG) $(STARTUP) vdemo,$*,,$(LIBS) $(LIBNAME)
  127.  
  128. #  ---------------------------------------------------------------------------
  129. wdemo.obj    :wdemo.c
  130.  
  131. wdemo.exe    :wdemo.obj  $(LIBNAME)
  132.                 tlink $(LINKDEBUG) $(STARTUP) wdemo,$*,,$(LIBS) $(LIBNAME)
  133.  
  134. #  ---------------------------------------------------------------------------
  135. mscdemo.obj    :mscdemo.c
  136.  
  137. mscdemo.exe    :mscdemo.obj  $(LIBNAME)
  138.                 tlink $(LINKDEBUG) $(STARTUP) mscdemo,$*,,$(LIBS) $(LIBNAME)
  139.  
  140. #  ---------------------------------------------------------------------------
  141. mdemo.obj    :mdemo.c
  142.  
  143. mdemo.exe    :mdemo.obj  $(LIBNAME)
  144.                 tlink $(LINKDEBUG) $(STARTUP) mdemo,$*,,$(LIBS) $(LIBNAME)
  145.  
  146. #  ---------------------------------------------------------------------------
  147. sdemo.obj    :sdemo.c
  148.  
  149. sdemo.exe    :sdemo.obj  $(LIBNAME)
  150.                 tlink $(LINKDEBUG) $(STARTUP) sdemo,$*,,$(LIBS) $(LIBNAME)
  151.  
  152.  
  153.  
  154.